package com.todo.biz.common.base;

/**
 * @author azhebuxing
 * @date 2024/12/9 15:41
 * @description
 */
public class DictKeyBuild {

    private static final String DICT_KEY_PREFIX = "DICT_";

    public static String localCacheKey(String bizCode, String sceneCode){
        return DICT_KEY_PREFIX + bizCode + "_" + sceneCode;
    }

    public static String buildDictCodeKey() {
        return DictRedisKey.DICT_BIZ_SCENE_KEY;
    }

    public static String buildDictHashKey(String bizCode, String sceneCode) {
        return String.format(DictRedisKey.DICT_HASH_KEY, bizCode, sceneCode);
    }

}
